Component({
  properties: {
    goods_desc: {
      type: Object
    },
    order_img: {
      type: Object
    },
    right_btn: {
      type: Boolean,
      value: false
    },
    right_text_show: {
      type: Boolean,
      value: false
    },
    sy_time: {
      type: Number,
      value:86400000
    },
    show_time_sy: {
      type: Boolean,
      value: false
    },

    left_text: {
      type: String,
      value: ""
    },
    middle_text: {
      type: String,
      value: ""
    },
    right_text: {
      type: String,
      value: ""
    },
    right_text_btn: {
      type: String,
      value: ""
    }

  },

  data: {
    base_url: "https://vip.join.ink/"
  },

  methods: {
    go_goods_info(e) {
      console.log(e,"e");
      let id = e.currentTarget.dataset.order.order_id
      let state = e.currentTarget.dataset.order.state
      let order={id,state}
      order=JSON.stringify(order)
      wx.redirectTo({
        url: `/pages/order_info/order_info?order=${order}`,
      })
    },

    left_click() {
      this.triggerEvent("leftClick")
    },
    middle_click() {
      this.triggerEvent("middleClick")
    },
    right_click() {
      this.triggerEvent("rightClick")
    },
    right_click_btn() {
      this.triggerEvent("rightClick_btn")
    }
  },
})